package com.ossjk.oa.accounting.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.ossjk.core.base.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author chair
 * @since 2020-05-14
 */
@TableName("cw_capitals")
public class CwCapitals extends BaseEntity<CwCapitals> {

    private static final long serialVersionUID = 1L;

    /**
     * 流水ID
     */
//    @TableId("id")
//    private String id;
    /**
     * 收支名称
     */
    @ApiModelProperty(name = "cptname", dataType = "String", value = "收支名称")
    @TableField("cptname")
    private String cptname;
    /**
     * 收支日期
     */
    @ApiModelProperty(name = "cptdate", dataType = "Date", value = "收支日期")
    @TableField("cptdate")
    private Date cptdate;
    /**
     * 存取账户
     */
    @ApiModelProperty(name = "cpttype", dataType = "String", value = "存取账户")
    @TableField("cpttype")
    private String cpttype;

    @ApiModelProperty(name = "typec", dataType = "String", value = "收支类型")
    @TableField("typec")
    private String typec;

    @TableField("cptacount")
    private BigDecimal cptacount;
    /**
     * 审批人
     */
    @ApiModelProperty(name = "spemp", dataType = "String", value = "审批人")
    @TableField("spemp")
    private String spemp;
    @TableField("spdate")
    private Date spdate;
    /**
     * 描述
     */
    @ApiModelProperty(name = "descb", dataType = "String", value = "描述")
    @TableField("descb")
    private String descb;
    /**
     * 状态[0：新增，1：已入账
     */
    @ApiModelProperty(name = "flag", dataType = "Integer", value = "状态[0：新增，1：已入账]")
    @TableField("flag")
    private Integer flag;
    /**
     * 报销id
     */
    @ApiModelProperty(name = "reimid", dataType = "Integer", value = "报销id")
    @TableField("reimid")
    private String reimid;
    /**
     * 工资id
     */
    @ApiModelProperty(name = "esid", dataType = "String", value = "工资id")
    @TableField("esid")
    private String esid;
    /**
     * 应收款id
     */
    @ApiModelProperty(name = "receivablesid", dataType = "String", value = "应收款id")
    @TableField("receivablesid")
    private String receivablesid;
    /**
     * 状态 1-业务数据、2-系统数据
     */
//    @ApiModelProperty(name = "state", dataType = "BigDecimal", value = "状态 1-业务数据、2-系统数据")
//    @TableField("state")
//    private BigDecimal state;
    /**
     * 逻辑删除 1-未删除、2-已删除
     */
//    @ApiModelProperty(name = "isdelete", dataType = "BigDecimal", value = "逻辑删除 1-未删除、2-已删除")
//    @TableField("isdelete")
//    private BigDecimal isdelete;

//
//    public String getId() {
//        return id;
//    }
//
//    public void setId(String id) {
//        this.id = id;
//    }

    public String getCptname() {
        return cptname;
    }

    public void setCptname(String cptname) {
        this.cptname = cptname;
    }

    public Date getCptdate() {
        return cptdate;
    }

    public void setCptdate(Date cptdate) {
        this.cptdate = cptdate;
    }

    public String getCpttype() {
        return cpttype;
    }

    public void setCpttype(String cpttype) {
        this.cpttype = cpttype;
    }

    public String getTypec() {
        return typec;
    }

    public void setTypec(String typec) {
        this.typec = typec;
    }

    public BigDecimal getCptacount() {
        return cptacount;
    }

    public void setCptacount(BigDecimal cptacount) {
        this.cptacount = cptacount;
    }

    public String getSpemp() {
        return spemp;
    }

    public void setSpemp(String spemp) {
        this.spemp = spemp;
    }

    public Date getSpdate() {
        return spdate;
    }

    public void setSpdate(Date spdate) {
        this.spdate = spdate;
    }

    public String getDescb() {
        return descb;
    }

    public void setDescb(String descb) {
        this.descb = descb;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getReimid() {
        return reimid;
    }

    public void setReimid(String reimid) {
        this.reimid = reimid;
    }

    public String getEsid() {
        return esid;
    }

    public void setEsid(String esid) {
        this.esid = esid;
    }

    public String getReceivablesid() {
        return receivablesid;
    }

    public void setReceivablesid(String receivablesid) {
        this.receivablesid = receivablesid;
    }

//    public BigDecimal getState() {
//        return state;
//    }
//
//    public void setState(BigDecimal state) {
//        this.state = state;
//    }
//
//    public BigDecimal getIsdelete() {
//        return isdelete;
//    }
//
//    public void setIsdelete(BigDecimal isdelete) {
//        this.isdelete = isdelete;
//    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CwCapitals{" +

                ", cptname=" + cptname +
                ", cptdate=" + cptdate +
                ", cpttype=" + cpttype +
                ", typec=" + typec +
                ", cptacount=" + cptacount +
                ", spemp=" + spemp +
                ", spdate=" + spdate +
                ", descb=" + descb +
                ", flag=" + flag +
                ", reimid=" + reimid +
                ", esid=" + esid +
                ", receivablesid=" + receivablesid +

                "}";
    }
}
